<%@ page language="java" contentType="text/html; charset=utf-8"%>
<%@ taglib prefix="s" uri="/struts-tags" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>PayChannel</title>
<link href="styles/general.css" rel="stylesheet" type="text/css" /><link href="styles/main.css" rel="stylesheet" type="text/css" />
    <script type="text/javascript" src="js/transport.js"></script>
    <script type="text/javascript" src="js/common.js"></script>
     <script type="text/javascript" src="js/sorttable.js"></script>
    <script src="js/utils.js" type="text/javascript"></script>

</head>

<body>
<h1>
        <span class="action-span"><a href="language_show.do?msg=insert">添加语言</a></span> <span
            class="action-span1"><a href="mainframe.jsp">
                首页</a> </span><span id="search_id" class="action-span1">- 语言管理 </span>
    </h1>
    <form name="form1" method="post" action="admin_list.do" id="form1">
    
    <!--搜索 -->
    <!--div class="form-div">
        <div id="Panel1">
	
            <img height="22" width="26" border="0" alt="SEARCH" src="img/icon_search.gif">
            关键字
            <input name="txt_keyword" type="text" id="txt_keyword"  value="<s:property value="txt_keyword"/>"/>
            <input type="submit" name="ButtonSearch" value=" 搜索 " id="ButtonSearch" class="button" />
        
</div>
    </div-->
    </form>
   <!-- start ad menu list -->
    <div class="list-div" id="listDiv">
        <table width="100%" cellspacing="1" cellpadding="2" class="sortable" id="sortable">
            <tbody>
                <tr>
                    <th height="20">序号</th>
				    <th>语言名称</th>
				    <th>语言描述</th>
				    <th>操作</th>
                </tr>
                <s:if test="llist.size()>0">
  				<s:iterator value="llist" status="i"> 
  					 <tr>
                            <td style="background-color: rgb(255, 255, 255);"><s:property value="#i.count"/></td>
						    <td style="background-color: rgb(255, 255, 255);"><s:property value="name"/></td> 
						    <td style="background-color: rgb(255, 255, 255);"><s:property value="remark"/></td>
						    <td align="center" style="background-color: rgb(255, 255, 255);">
						     <s:if test="isUpdate.equals('true')">
							     <a href="language_show.do?msg=update&language.id=<s:property value="id"/>">
							     	<img height="16" width="16" border="0" src="img/icon_edit.gif" alt="编辑"></a>&nbsp;
								<a href="language_save.do?msg=del&language.id=<s:property value="id"/>" onclick="return window.confirm('警告！！确定要删除吗？')">
									<img height="16" width="16" border="0" src="img/icon_trash.gif" alt="删除">
								</a>	
							</s:if>
							<s:else>
								<a href="language_show.do?type=update&language.id=<s:property value="id"/>">
									<img height="16" width="16" border="0" src="img/icon_view.gif" alt="查看">
								</a>   
							</s:else>
							
							</td>
  					</tr>
  				</s:iterator>
  				</s:if>
  </tbody>
  </table>
  </div>
 <!--Bottom开始-->
    <script language="JavaScript">

if (document.getElementById("listDiv"))
{
  document.getElementById("listDiv").onmouseover = function(e)
  {
    obj = Utils.srcElement(e);

    if (obj)
    {
      if (obj.parentNode.tagName.toLowerCase() == "tr") row = obj.parentNode;
      else if (obj.parentNode.parentNode.tagName.toLowerCase() == "tr") row = obj.parentNode.parentNode;
      else return;

      for (i = 0; i < row.cells.length; i++)
      {
        if (row.cells[i].tagName != "TH") row.cells[i].style.backgroundColor = '#eeeded';
      }
    }

  }

  document.getElementById("listDiv").onmouseout = function(e)
  {
    obj = Utils.srcElement(e);

    if (obj)
    {
      if (obj.parentNode.tagName.toLowerCase() == "tr") row = obj.parentNode;
      else if (obj.parentNode.parentNode.tagName.toLowerCase() == "tr") row = obj.parentNode.parentNode;
      else return;

      for (i = 0; i < row.cells.length; i++)
      {
          if (row.cells[i].tagName != "TH") row.cells[i].style.backgroundColor = '#FFF';
      }
    }
  }

}

    </script>
    
<div id="footer">
<br />
<s:property value="bottom"/></div>
    <!--Bottom结束-->
</body>
</html>